package com.ruoyi.UserRealMoney.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.UserRealMoney.mapper.UserRealmoneyMapper;
import com.ruoyi.UserRealMoney.domain.UserRealmoney;
import com.ruoyi.UserRealMoney.service.IUserRealmoneyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户提现 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-31
 */
@Service
public class UserRealmoneyServiceImpl implements IUserRealmoneyService 
{
	@Autowired
	private UserRealmoneyMapper userRealmoneyMapper;

	/**
     * 查询用户提现信息
     * 
     * @param id 用户提现ID
     * @return 用户提现信息
     */
    @Override
	public UserRealmoney selectUserRealmoneyById(Integer id)
	{
	    return userRealmoneyMapper.selectUserRealmoneyById(id);
	}
	
	/**
     * 查询用户提现列表
     * 
     * @param userRealmoney 用户提现信息
     * @return 用户提现集合
     */
	@Override
	public List<UserRealmoney> selectUserRealmoneyList(UserRealmoney userRealmoney)
	{
	    return userRealmoneyMapper.selectUserRealmoneyList(userRealmoney);
	}
	
    /**
     * 新增用户提现
     * 
     * @param userRealmoney 用户提现信息
     * @return 结果
     */
	@Override
	public int insertUserRealmoney(UserRealmoney userRealmoney)
	{
	    return userRealmoneyMapper.insertUserRealmoney(userRealmoney);
	}
	
	/**
     * 修改用户提现
     * 
     * @param userRealmoney 用户提现信息
     * @return 结果
     */
	@Override
	public int updateUserRealmoney(UserRealmoney userRealmoney)
	{
	    return userRealmoneyMapper.updateUserRealmoney(userRealmoney);
	}

	/**
     * 删除用户提现对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteUserRealmoneyByIds(String ids)
	{
		return userRealmoneyMapper.deleteUserRealmoneyByIds(Convert.toStrArray(ids));
	}
	
}
